7.5
HIGH CVSS 3.1
CVE-2022-41716
Unsanitized NUL in environment variables on Windows in syscall and os/exec
Description

Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".

INFO

Published Date :

Nov. 2, 2022, 4:15 p.m.

Last Modified :

Nov. 21, 2024, 7:23 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2022-41716 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Golang go
1 Microsoft windows
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Update golang and Linux packages to address the Windows environment variable vulnerability.
  • Update the affected golang packages.
  • Update the affected Linux packages.
Public PoC/Exploit Available at Github

CVE-2022-41716 has a 7 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-41716.

URL Resource
https://go.dev/cl/446916 Patch Vendor Advisory
https://go.dev/issue/56284 Issue Tracking Patch Vendor Advisory
https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ Patch Release Notes Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-1095 Vendor Advisory
https://go.dev/cl/446916 Patch Vendor Advisory
https://go.dev/issue/56284 Issue Tracking Patch Vendor Advisory
https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ Patch Release Notes Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-1095 Vendor Advisory
https://security.netapp.com/advisory/ntap-20230120-0007/
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-41716 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-41716 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A powerful Kubernetes debugging tool that enables network capture, command execution, and file operations across multiple pods and nodes simultaneously through privileged debug pods.

Shell

Updated: 1 day, 12 hours ago
0 stars 0 fork 0 watcher
Born at : Sept. 11, 2025, 9:46 a.m. This repo has been linked 142 different CVEs too.

None

Dockerfile

Updated: 9 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Dec. 4, 2024, 12:29 p.m. This repo has been linked 49 different CVEs too.

None

Dockerfile

Updated: 10 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : Oct. 15, 2024, 2:12 p.m. This repo has been linked 49 different CVEs too.

None

Dockerfile

Updated: 1 year, 10 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 31, 2023, 7:09 p.m. This repo has been linked 49 different CVEs too.

All Public RunWhen Helm Charts - Managed by terraform

Smarty Shell Dockerfile

Updated: 5 days, 1 hour ago
1 stars 0 fork 0 watcher
Born at : Sept. 18, 2023, 10:09 a.m. This repo has been linked 57 different CVEs too.

None

Dockerfile

Updated: 1 year, 4 months ago
0 stars 1 fork 1 watcher
Born at : March 27, 2023, 3:07 p.m. This repo has been linked 49 different CVEs too.

Container image with malware and crypto miner for testing purposes

container crypto cryptominer dockerfile eicar image malware test xmrig

Dockerfile

Updated: 9 months, 1 week ago
41 stars 22 fork 22 watcher
Born at : Nov. 4, 2022, 9:16 a.m. This repo has been linked 49 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-41716 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-41716 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://go.dev/cl/446916
    Added Reference https://go.dev/issue/56284
    Added Reference https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
    Added Reference https://pkg.go.dev/vuln/GO-2022-1095
    Added Reference https://security.netapp.com/advisory/ntap-20230120-0007/
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 30, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Removed CWE Go Project CWE-158
  • Reanalysis by [email protected]

    Jun. 27, 2023

    Action Type Old Value New Value
    Removed CWE NIST CWE-74
    Added CWE NIST NVD-CWE-Other
  • Initial Analysis by [email protected]

    Nov. 04, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://go.dev/cl/446916 No Types Assigned https://go.dev/cl/446916 Patch, Vendor Advisory
    Changed Reference Type https://go.dev/issue/56284 No Types Assigned https://go.dev/issue/56284 Issue Tracking, Patch, Vendor Advisory
    Changed Reference Type https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ No Types Assigned https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ Patch, Release Notes, Vendor Advisory
    Changed Reference Type https://pkg.go.dev/vuln/GO-2022-1095 No Types Assigned https://pkg.go.dev/vuln/GO-2022-1095 Vendor Advisory
    Added CWE NIST CWE-74
    Added CPE Configuration AND OR *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions up to (excluding) 1.18.8 *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions from (including) 1.19.0 up to (excluding) 1.19.3 OR cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.01 }} 0.00%

score

0.01356

percentile